/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.herenit.beijing.poc.base.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.openide.DialogDisplayer;
import org.openide.NotifyDescriptor;
import org.openide.awt.ActionRegistration;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.awt.ActionID;
import org.openide.util.NbBundle;

@ActionID(category = "System",
id = "com.herenit.beijing.poc.base.LockAction")
@ActionRegistration(iconBase = "com/herenit/beijing/poc/base/1-11112R01534.png",
displayName = "com.herenit.beijing.poc.base.Bundle#CTL_LockAction")
@ActionReferences({
    @ActionReference(path = "Shortcuts", name = "O-L")
})
public final class LockAction implements ActionListener {

    @Override
    public void actionPerformed(ActionEvent e) {
        NotifyDescriptor nd = new NotifyDescriptor.InputLine(
                NbBundle.getBundle("com.herenit.beijing.poc.base.Bundle").getString("LockAction_Text"),
                NbBundle.getBundle("com.herenit.beijing.poc.base.Bundle").getString("LockAction_Title"));
        DialogDisplayer.getDefault().notifyLater(nd);
        
    }
}
